package 接口.圆的比较大小;

public class CompareableCircaleTest {
    public static void main(String[] args) {
        ComparableCircle circle=new ComparableCircle(3.4);
        ComparableCircle circle1=new ComparableCircle(3.6);
        int compareValue=circle.compareTo(circle1);
        if(compareValue>0){
            System.out.println("circle对象大");
        }else if(compareValue<0){
            System.out.println("circle1对象大");
        }else{
            System.out.println("一样大");
        }
    }
}
